module.exports = {
  mode: "development",
  devtool: "source-map",
  module: {
    rules: [
      {
        test: /\.js$/,
        use: [
          {
            loader: "cache-loader",
            options: {
              cacheDirectory: "./cache",
            },
          },
          "babel-loader",
        ],
        // 排除掉不需要用babel-loader的解析的库
        exclude: /node_modules/,
      },
    ],
  },
};
